<form class="form-horizontal" role="form">
	<div class="col-md-10 col-md-offset-1">
		<div class="panel panel-info">
			<div class="panel-heading text-center">字典</div>
				<div class="panel-body">
					<div class="form-group">
						<div class="form-group">
							<label for="inputDate" class="col-sm-3 control-label">键值</label>
							<div class="col-md-6">
								<input type="text" class="form-control" id="inputpoolname" placeholder=""
									ng-model="info.code"
								>
							</div>    
						</div>

						<div class="form-group">
							<label for="inputDate" class="col-sm-3 control-label">标签</label>
							<div class="col-md-6">
								<input type="text" class="form-control" id="inputpoolname" placeholder=""
									ng-model="info.label"
								>
							</div>
						</div>

						<!-- <div class="form-group">
							<label class="col-xs-4 control-label">类型</label>
	   						<div class="col-md-6">
			   					<ui-select ng-model="searchform.selected" theme="bootstrap" ng-change="change()">
									<ui-select-match placeholder="选择类型">{{$select.selected.type}}</ui-select-match>
									<ui-select-choices repeat="item in datas | filter: $select.search">
										<span ng-bind-html="item.type | highlight: $select.search"></span>
									</ui-select-choices>
			                    </ui-select>
	   						</div>    
	 					</div> -->
						
						<div class="form-group">
							<label for="inputDate" class="col-sm-3 control-label">类型</label>
							<div class="col-md-6">
								<input type="text" class="form-control" id="inputpoolname" placeholder=""
									ng-model="info.type"
								>
							</div>
						</div>

						<div class="form-group">
							<label for="inputDate" class="col-sm-3 control-label">描述</label>
							<div class="col-md-6">
								<input type="text" class="form-control" id="inputpoolname" placeholder=""
									ng-model="info.info"
								>
							</div>
						</div>

						<div class="form-group">
							<label for="inputDate" class="col-sm-3 control-label">URL</label>
							<div class="col-md-6">
								<input type="text" class="form-control" id="inputpoolname" placeholder=""
									ng-model="info.url"
								>
							</div>
						</div>
						<div class="form-group">
							<label for="inputDate" class="col-sm-3 control-label">appURL</label>
							<div class="col-md-6">
								<input type="text" class="form-control" id="inputpoolname" placeholder=""
									ng-model="info.app_url"
								>
							</div>
						</div>


						<div class="form-group">
							<label for="inputDate" class="col-sm-3 control-label">排序</label>
							<div class="col-md-6">
								<input type="text" class="form-control" id="inputpoolname" placeholder=""
									ng-model="info.asort"
								>
							</div>
						</div>

						<div class="form-group">
							<label for="inputDate" class="col-sm-3 control-label">图片</label>
							<div class="col-md-6">
						        <img ng-src="{{info.img}}" width="50%" height="150" ng-model="info.img">
							        <input type="file" nv-file-select uploader="uploader" / ng-hide="hide===true" ><br/>
							        <ul class="list-group">
							          <li class="list-group-item" ng-repeat="item in uploader.queue">
							            文件名: <span ng-bind="item.file.name"></span>
							            <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
							            <div class="progress mt10">
							              <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader.progress + '%' }"></div>
							            </div>
							          </li>
							        </ul>
						    </div>
					    </div>
						<div class="form-group">
							<label for="inputDate" class="col-sm-3 control-label">备注</label>
							<div class="col-sm-6">
								<textarea class="form-control col-sm-2" cols="15" rows="5" ng-model="info.remark"></textarea>
							</div>
						</div>

						<div class="col-xs-12 form-group">
							<label for="lrl" class="col-sm-3 control-label">是否显示</label>
							<div class="col-xs-2" >
								<div class="input-group mt10">
									<label class="i-switch bg-success" ng-init="showinfo.isSelected" style="margin-left:25%">
										<input type="checkbox" ng-model="showinfo.isSelected" ng-change="changeState(showinfo.isSelected)">
										<i></i>
									</label>
								</div>
							</div>					
						</div>
						

					<button type="button" class="col-md-2 col-md-offset-5 btn btn-primary" ng-click="save()">保存</button>
				</div>
			</div>
		</div>
	</div>
</form>